#ifndef SERIALSELECTWIDGET_H
#define SERIALSELECTWIDGET_H

#include <QDialog>
#include <QSerialPort>
#include <QComboBox>
#include <QLabel>
#include <QPushButton>
#include <QGridLayout>
#include <QSettings>
#include <QMessageBox>
#include <QSerialPortInfo>
#include <QDebug>

class QSerialSelectWidget : public QDialog
{
    Q_OBJECT
public:
    explicit QSerialSelectWidget(QDialog *parent = nullptr);

signals:

public slots:

    void onOk();

    void onCancel();
public:
    QStringList getEnableCommPort();
    QString m_sSelectComName;

private:

    void InitUI();

    QComboBox* _pComBox;

    QPushButton* _pOkBtn;
    QPushButton* _pCancelBtn;

};

#endif // SERIALSELECTWIDGET_H
